package main

import "sort"

func findValueOfPartition(nums []int) int {
	result := 1<<31
	sort.Ints(nums)
	for i := range nums {
		if i == 0 {
			continue
		}
		if nums[i] - nums[i-1] < result {
			result = nums[i] - nums[i-1]
		}
	}
	return result
}